<template> </template>

<script lang="ts" setup>
  import { useRoute } from 'vue-router'
  import { local_storage } from '@/utils/storage'
  import { SMALL_COMPANYNAME } from '@/enums/cacheEnum'

  const route = useRoute()
  const { query } = route
  local_storage.set(SMALL_COMPANYNAME, query.companyName)
  window.location.href = `https://mp.weixin.qq.com/cgi-bin/componentloginpage?component_appid=${query.component_appid}&pre_auth_code=${query.pre_auth_code}&redirect_uri=${query.redirect_uri}&auth_type=2&companyName=${query.companyName}`
</script>

<style></style>
